
package com.hexinfo.dmpro.sparing.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hexinfo.dmpro.common.utils.CommonConstants;
import com.hexinfo.dmpro.sparing.model.HotSpareDeleTask;
import com.hexinfo.dmpro.sparing.dao.HotSpareDeleTaskMapper;
import com.hexinfo.dmpro.sparing.service.HotSpareDeleTaskService;
import org.springframework.stereotype.Service;

/**
 * 热备删除稽核任务表
 *
 * @author yemw
 * @date 2023-11-21 15:52:53
 */
@Service
public class HotSpareDeleTaskServiceImpl extends ServiceImpl<HotSpareDeleTaskMapper, HotSpareDeleTask> implements HotSpareDeleTaskService {

    @Override
    public Page queryList(Page page, HotSpareDeleTask hotSpareDeleTask) {
        LambdaQueryWrapper<HotSpareDeleTask> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(HotSpareDeleTask::getDel,CommonConstants.STATUS_NORMAL);
        Page returnPage = this.baseMapper.selectPage(page, wrapper);
        return returnPage;
    }
}
